package com.xcn.dsxm.main_public.database.dao;

import java.util.HashMap;
import java.util.List;

public interface DbDao_xcn_admin {

    /**
     * 1-插入数据
     */
    public int insert(String sql) throws Exception;

    public int insert(String mybatisId, HashMap<String, Object> params) throws Exception;


    /**
     * 2-删除数据
     */
    public int delete(String sql) throws Exception;

    public int delete(String mybatisId, HashMap<String, Object> params) throws Exception;


    /**
     * 3-更新数据
     */
    public int update(String sql) throws Exception;

    public int update(String mybatisId, HashMap<String, Object> params) throws Exception;


    /**
     * 4-查询多个结果
     */
    public List<HashMap<String, Object>> more(String sql) throws Exception;

    public List<HashMap<String, Object>> more(String mybatisId, HashMap<String, Object> params) throws Exception;


    /**
     * 5-执行事务
     */
    public int transaction(List<String> sqlArr) throws Exception;

    public int transactions(HashMap<String, Object>... sqlArr) throws Exception;

    public int transactions(List<HashMap<String, Object>> sqlArr) throws Exception;
}
